package middleware.p2p.replication;

import java.io.File;

public class ReplicaCacheEntry {
	private ReplicaAction action;
	private String componentId;
	private String content;
	private File tempFile;
	public ReplicaCacheEntry(String componentId,String content,ReplicaAction action) {
		this.componentId=componentId;
		this.content=content;	
		this.action=action;
		this.setTempFile(null);
	}
	/**
	 * @return the componentId
	 */
	public String getComponentId() {
		return componentId;
	}
	/**
	 * @param componentId the componentId to set
	 */
	public void setComponentId(String componentId) {
		this.componentId = componentId;
	}
	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}
	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * @param tempFile the tempFile to set
	 */
	public void setTempFile(File tempFile) {
		this.tempFile = tempFile;
	}
	/**
	 * @return the tempFile
	 */
	public File getTempFile() {
		return tempFile;
	}
	/**
	 * @param action the action to set
	 */
	public void setAction(ReplicaAction action) {
		this.action = action;
	}
	/**
	 * @return the action
	 */
	public ReplicaAction getAction() {
		return action;
	}
}
